package com.itheima.config;

import org.springframework.context.annotation.*;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 刘全
 * @date 2021/9/16
 */
@Configuration
@ComponentScan(value = "com.itheima.service",
        excludeFilters = @ComponentScan.Filter(
                type = FilterType.ANNOTATION,
                classes = RestController.class
        ))
@PropertySource("classpath:jdbc.properties")
@Import({JdbcConfig.class,MybatisConfig.class})
@EnableTransactionManagement
public class SpringConfig {
}
